package com.jiusit.common.utils;

import java.util.Map;

import com.alibaba.fastjson.JSON;
import com.jfinal.kit.HttpKit;
import com.jfinal.kit.PropKit;

public class TicketUtil {
	
	public static Map getTicket(){
		String url="https://api.weibo.com/oauth2/js_ticket/generate?client_id="+PropKit.get("client_ID")+"&client_secret="+PropKit.get("client_SERCRET")+"";
		String ticket = HttpKit
				.post(url, "");
		Map dataMap=JSON.parseObject(ticket);
		return dataMap;
	}

}
